package com.test.work;

/**
 * @author Cc
 * 2024-03-22
 */
public class BoyThread extends Thread {
    private AppleTree appleTree;

    public BoyThread(AppleTree appleTree) {
        this.appleTree = appleTree;
    }

    @Override
    public void run() {
        while (true) {
            appleTree.put();
        }
    }
}
